<!-- Author: Moe Kyaw Thu Aung --> 
<!-- Last Modified: 11 Sep 2012 --> 
<?php
	 if (isset($_SESSION['visitorID'])) {
	$connection=mysql_connect("localhost", "root", ""); 
	mysql_select_db("onestopjcu");
	$querytest="select * from member WHERE mem_id= '" .  $_SESSION['visitorID'] . "'";
	$result=mysql_query($querytest);
  	$resultnum=mysql_num_rows($result);
  	if($resultnum>=1)
  	{
		$show=mysql_fetch_array($result); 
		$fname = $show['mem_fname'];
		$lname = $show['mem_lname'];
		$email = $show['mem_email'];
		$name = $fname." ".$lname;
  	}
	$connection = mysql_close();
						
	 } else {
		 $name = "";
		 $email = "";
	 }
?>